package org.wuliu.pojo;

import java.sql.Timestamp;

public class Panku {
    private Integer id;
    private Integer yewuId;
    private Timestamp scDate;
    private String chengshi;
    private Integer zhuangtai;
    private Yeweu yeweu;
    private Hebao hebao;

    public Hebao getHebao() {
        return hebao;
    }

    public void setHebao(Hebao hebao) {
        this.hebao = hebao;
    }

    public Yeweu getYeweu() {
        return yeweu;
    }

    public void setYeweu(Yeweu yeweu) {
        this.yeweu = yeweu;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getYewuId() {
        return yewuId;
    }

    public void setYewuId(Integer yewuId) {
        this.yewuId = yewuId;
    }

    public Timestamp getScDate() {
        return scDate;
    }

    public void setScDate(Timestamp scDate) {
        this.scDate = scDate;
    }

    public String getChengshi() {
        return chengshi;
    }

    public void setChengshi(String chengshi) {
        this.chengshi = chengshi;
    }

    public Integer getZhuangtai() {
        return zhuangtai;
    }

    public void setZhuangtai(Integer zhuangtai) {
        this.zhuangtai = zhuangtai;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Panku panku = (Panku) o;

        if (id != null ? !id.equals(panku.id) : panku.id != null) return false;
        if (yewuId != null ? !yewuId.equals(panku.yewuId) : panku.yewuId != null) return false;
        if (scDate != null ? !scDate.equals(panku.scDate) : panku.scDate != null) return false;
        if (chengshi != null ? !chengshi.equals(panku.chengshi) : panku.chengshi != null) return false;
        if (zhuangtai != null ? !zhuangtai.equals(panku.zhuangtai) : panku.zhuangtai != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (yewuId != null ? yewuId.hashCode() : 0);
        result = 31 * result + (scDate != null ? scDate.hashCode() : 0);
        result = 31 * result + (chengshi != null ? chengshi.hashCode() : 0);
        result = 31 * result + (zhuangtai != null ? zhuangtai.hashCode() : 0);
        return result;
    }
}
